package com.zyg.demo.entity;

import android.animation.ObjectAnimator;
import android.support.v7.widget.RecyclerView;

/**
 * @author zhengyunguang
 * created at 2019-07-10 17:36
 */
public class FolderBgShowItem extends AnimItem {

    private ObjectAnimator animator;

    public FolderBgShowItem(RecyclerView.ViewHolder viewHolder, int pos) {
        super(viewHolder, pos);
        scale = 1f;
        animator = ObjectAnimator.ofFloat(this, "scale", scale, 1.2f);
    }

    public void show() {
        animator.setDuration(200);
        animator.setAutoCancel(true);
        animator.start();
    }
}
